﻿Imports Microsoft.VisualBasic

Public Class DBPaymentOrderDtlSP
    Inherits DBParentStoredProcedureClass

    Public Operation As New TableField("Operation", Data.SqlDbType.NVarChar)
    Public ID As New TableField("ID", Data.SqlDbType.Int)
    Public PayOrdID As New TableField("PayOrdID", Data.SqlDbType.Int)
    Public LPOYear As New TableField("LPOYear", Data.SqlDbType.Int)
    Public LPOID As New TableField("LPOID", Data.SqlDbType.Int)
    Public ProgramNo As New TableField("ProgramNo", Data.SqlDbType.NVarChar)
    Public ProjectNo As New TableField("ProjectNo", Data.SqlDbType.NVarChar)
    Public AccountNo As New TableField("AccountNo", Data.SqlDbType.NVarChar)
    Public Amount As New TableField("Amount", Data.SqlDbType.Float)
    Public Remarks As New TableField("Remarks", Data.SqlDbType.NVarChar)
    Public RecordStatus As New TableField("RecordStatus", Data.SqlDbType.Int)
    Public LastUpdateBy As New TableField("LastUpdateBy", Data.SqlDbType.NVarChar)
    Public LastUpdateDate As New TableField("LastUpdateDate", Data.SqlDbType.DateTime)

    Sub New()
        MyBase.StoredProcedureName = "PaymentOrderDtlSP"
    End Sub

    Public Shadows Function QueryDatabase(ByVal QueryType As SqlQueryType, _
                                 Optional ByVal Operation As String = "", _
                                 Optional ByVal ID As String = "", _
                                 Optional ByVal PayOrdID As String = "", _
                                 Optional ByVal LPOYear As String = "", _
                                  Optional ByVal LPOID As String = "", _
                                  Optional ByVal ProgramNo As String = "", _
                                  Optional ByVal ProjectNo As String = "", _
                                  Optional ByVal AccountNo As String = "", _
                                  Optional ByVal Amount As String = "", _
                                   Optional ByVal Remarks As String = "", _
                                  Optional ByVal RecordStatus As String = "", _
                                  Optional ByVal LastUpdateBy As String = "", _
                                  Optional ByVal LastUpdateDate As String = "") As Object

        MyBase.FieldsArrayList = New ArrayList
        Me.Operation.SetValue(Operation, MyBase.FieldsArrayList)
        Me.ID.SetValue(ID, MyBase.FieldsArrayList)
        Me.PayOrdID.SetValue(PayOrdID, MyBase.FieldsArrayList)
        Me.LPOYear.SetValue(LPOYear, MyBase.FieldsArrayList)
        Me.LPOID.SetValue(LPOID, MyBase.FieldsArrayList)
        Me.ProgramNo.SetValue(ProgramNo, MyBase.FieldsArrayList)
        Me.ProjectNo.SetValue(ProjectNo, MyBase.FieldsArrayList)
        Me.AccountNo.SetValue(AccountNo, MyBase.FieldsArrayList)
        Me.Amount.SetValue(Amount, MyBase.FieldsArrayList)
        Me.Remarks.SetValue(Remarks, MyBase.FieldsArrayList)
        Me.RecordStatus.SetValue(RecordStatus, MyBase.FieldsArrayList)
        Me.LastUpdateBy.SetValue(LastUpdateBy, MyBase.FieldsArrayList)
        Me.LastUpdateDate.SetValue(LastUpdateDate, MyBase.FieldsArrayList)

        Return MyBase.QueryDatabase(QueryType)
    End Function

End Class
